@echo off
::
:: USER-SUPPLIED VARIABLES
set wowDir=D:\Games\WoW-1.12.1
set accountName=STUPIDALTACCOUNT
set serverName=jeffhogan.me
set ftpUser=guildebank
set ftpPass=yeoldeguilde
::
::
set timeStamp=%date:~10,4%%date:~7,2%%date:~4,2%-%time:~0,2%%time:~3,2%%time:~6,2%

echo Starting World Of Warcraft....
echo Leave this window open. When you exit World of Warcraft, this script will upload changes to the ftp server....
::%wowDir%\WoW.exe
echo World of Warcraft exitied, now parsing guilde bank data...
echo Uploading formated data to ftp site

:: Locations of the three files need to perform an update
set bankItems=%wowDir%\WTF\Account\%accountName%\SavedVariables\BankItems.lua
set characterProfiler=%wowDir%\WTF\Account\%accountName%\SavedVariables\CharacterProfiler.lua
set mailTo=%wowDir%\WTF\Account\%accountName%\SavedVariables\MailTo.lua

:: ftp upload
echo user %ftpUser%> ftpcmd.dat
echo %ftpPass%>> ftpcmd.dat
echo bin>> ftpcmd.dat
echo put %bankItems% BankItems-%timeStamp%.lua>> ftpcmd.dat
echo put %characterProfiler% CharProfile-%timeStamp%.lua>> ftpcmd.dat
echo put %mailTo% MailTo-%timeStamp%.lua>> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat %serverName%
del ftpcmd.dat
pause